package com.stu.dao;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * @author zy
 * @date 2025/3/31
 */
//@ExtendWith(SpringExtension.class)
//@ContextConfiguration(locations = {"classpath:spring/spring-*.xml"})
@SpringJUnitConfig(locations = {"classpath:spring/spring-*.xml"})
public class UserDaoText {
    @Autowired
    private UserDao userDao;

    @Test
    public void testUserDao() {
        userDao.addUser(2,3);
    }
}
